package com.icode.gulimall.order.feign;

import com.icode.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: my_code
 * @Email: my_code@foxmail.com
 * @Create: 2021-01-22 16:08
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("member/memberreceiveaddress/info/bymemberid")
    R listInfo(@RequestParam("memberId") Long memberId);

    @GetMapping("member/memberreceiveaddress/info/{id}")
    R addressInfo(@PathVariable("id") Long id);
}
